package svn;

public class ClassA {
    
    int a;
    int b;
    
    public ClassA(){
        a=0;
        b=0;
    }
    
    public ClassA(int a, int b) {
        this.a=a;
        this.b=b;
    }
    
    public int gettersA(){        
        return a;
    }
    
    public int gettersB(){        
        return b;
    }
    
    public void settersA(int a){        
        this.a=a;
    }
    
    public void settersB(int b){        
        this.b=b;
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }
        if (!(object instanceof ClassA)) {
            return false;
        }
        final ClassA other = (ClassA) object;
        if (a != other.a) {
            return false;
        }
        if (b != other.b) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        final int PRIME = 37;
        int result = 1;
        result = PRIME * result + a;
        result = PRIME * result + b;
        return result;
    }

}
